import Studycodemodel from "../mysql_interface/studycodemodel";

export interface badgeType {
    sett: boolean
}

export interface PU {
    data?: Studycodemodel.Iteam,
    changeteam?: (str: Studycodemodel.Iteam) => void,
    isAdmin?: 0 | 1 | 2
    user?: Studycodemodel.Iuser
    teamusers?: Studycodemodel.Iteamuser[]
    getUsers?: Function
    badge?: badgeType
}
// 任务类型
export enum TaskType {
    QUESTION = "question",
    VIDEO = "video",
    FILE = "file",
}
// 成员完成概况
export interface MemberFinishTaskDetail {
    taskType: TaskType, taskId: number,
    userId: number, name: string, finishCount: number, percent: number, finishDate: Date
}